Computer Theorem Proving and HoTT

نویسندگان

  • Joe Leslie-Hurd
  • Guy Haworth
چکیده

Theorem-proving is a one-player game. The history of computer programs being the players goes back to 1956 and the ‘LT’ LOGIC THEORY MACHINE of Newell, Shaw and Simon. In game-playing terms, the ‘initial position’ is the core set of axioms chosen for the particular logic and the ‘moves’ are the rules of inference. Now, the Univalent Foundations Program at IAS Princeton and the resulting ‘HoTT’ book on Homotopy Type Theory have demonstrated the success of a new kind of experimental mathematics using computer theorem proving. The essence of mathematics is to prove theorems. The logicians do so within formal systems of symbolic logic and proceed from a chosen alphabet of symbols and initial set of axioms via a chosen set of rules of inference. In the language of game-playing, the axiom set is the initial position of a game and the inference rule set is the set of allowable moves of the game. The first example of a computer program in the role of the player, the theorem prover, was the ‘LT’ LOGIC THEORY MACHINE of Newell, Shaw and Simon (1957). LT even found some novel proofs in proving 38 of the first 52 theorems of Whitehead and Russell’s Principia Mathematica (1910), q.v. the appendix. The program, demonstrated at the 1956 Dartmouth Artificial Intelligence workshop, is one of the first true AI programs. Principia Mathematica was inspired by the earlier work of Gottlob Frege (1884, 1893), now regarded as one of the fathers of modern logic. Russell sought to repair the foundations of all mathematics after discovering that Frege’s formulation of set theory allowed the existence of paradoxical sets, specifically ‘the set R of sets which do not belong to themselves’. Gödel’s Incompleteness Theorem (1931) proved that any formal logic system had its limits and that there will always be mathematical statements which can be either adopted or denied in new axioms without creating contradictions. Today, mathematics avoids the Russell set theory paradoxes by, for example, the adoption of ‘ZFC’ Zermelo-Fraenkel set theory with the Axiom of Choice. Computers have now contributed more to mechanized proof (Mackenzie, 2001) than a few undiscovered elegancies in Propositional Calculus. They have assisted proofs of the ‘4CC’ Four-Colour Conjecture (Appel et al., 1977a,b) and thereby raised questions about the nature of proof and verifiability (Hurd and Haworth, 2010) which had until then been assured by a social process (Lakatos, 1976). They have proved the Robbins conjecture with EQP (Mann, 2003; Sutcliffe, 2012), and generated formal proofs using the proof-assistant COQ of 4CC (Gonthier, 2008) and of the Feit-Thompson theorem (Gonthier, 2013). Today, computers are verifying aspects of the web and critical algorithms implemented in hardware and/or software. The adoption of computer theorem proving has created a demand for machine-checked proofs of interesting theorems to be understandable by the mathematics community also. Further, there is a constant demand to improve interactive theorem-proving, analogous to Kasparov’s Advanced Chess, where a human guides the search for a proof by invoking powerful automatic proof tactics. This suggests that the foundations of mathematics should be revisited, at least to create a cleaner base of concepts and notation for both man and machine. There is an instructive parallel for such a revisit in the scientific world. Today’s requirements to unify and advance the measurement of quantities have impelled the BIPM.CCU, see Figure 1, to completely overhaul 1 Intel Corporation, Portland, Oregon, USA. email: [email protected]. 2 The University of Reading, Berkshire, UK, RG6 6AH. email: [email protected]. 3 Davis’ Presburger Arithmetic algorithm, and checkers programs by Strachey and Arthur Samuel were earlier. 4 BIPM.CCU: the Bureau International des Poids et Mesures, Comité Consultatif des unités, http://www.bipm.org/ Computer Theorem Proving and HoTT 101 the definitions of the units of the Système International. The ‘New SI’ will be based exclusively on the fundamental constants of physics (Mills et al., 2011) rather than on a set of artifacts and prototypes. The latter have over time included the Earth (for its size and rotation), one litre of water (for its mass and triple point), the mètre des Archives, the ‘IPM’ International Prototype Metre, the kilogramme des Archives and the ‘IPK’ International Prototype Kilogramme. Science, engineering and technology can be no better than the measurement system on which they are based, and a New SI requires the world’s leading scientists to collaborate at the frontiers of science if new levels of measurement accuracy are to be achieved. Figure 1. The 20 meeting of the BIPM.CCU on the definitions of the units of the SI (2010). For the last year, the ‘IAS’ Institute for Advanced Studies in Princeton has hosted, see Figure 2, over sixty mathematicians working together on the Univalent Foundations Program, an initiative to define a new foundation for mathematics. Remarkably, this has already resulted in the publication of a book (Shulman, 2013; UFP, 2013), its production being assisted by advanced software for collaboration and the checking of mathematical proofs. In this case, the answer to the question ‘How many mathematicians does it take to write a 600 page book in less than half a year?’ would appear to be in the region of 35 to 65. Homotopy Type Theory (HoTT), introduced by Fields Medallist Vladimir Voevodsky, marries concepts from topology and logic to precisely define ‘What is a mathematical proof?’, a question which must be answered to uncover faulty proofs that threaten the consistency of mathematics. For this reason logic is sometimes rather unflatteringly called the hygiene of mathematics, but as Gödel and Turing showed, there are intrinsic limits which mean that no logic can provide a complete and consistent foundation for all mathematical truth. The 20 century saw the development of ZFC set theory, which today is the standard foundation of mathematics. Sets are just unordered collections of elements {x, y, ...}, and all familiar mathematical objects such as integers or permutations have a representation in pure set form. The gold standard of a mathematical proof is that (in principle) it could be expressed entirely in the language of sets, reasoning using the ZFC axioms. These include the notorious Axiom of Choice, which can be used, among other paradoxes, to cut up a disc into five pieces and then reassemble those pieces into two discs that are the same size as the original (Banach and Tarski, 1924). HoTT is an alternative foundation that is based on integrating concepts from topology into a typed logic which avoids the need for ZFC set theory and its troublesome axioms. In a nutshell, (i) types T and U are modelled as topological spaces; (ii) elements a and b of type T are considered identical if there is a continuous path in T from a to b; and (iii) functions f and g from type T to U are continuous maps from T to U. In topology a homotopy is a continuous morphing of one continuous map into another, and so in this context can be used to cleanly lift the notion of identity from elements a and b to functions f and g. 5 The metre, defined 1889-1960 as the distance between scratches on the IPM is now based on the speed of light. 6 Mass will soon be measured with an accuracy of 1 part in 210, not possible relative to the IPK which is losing mass compared to the average of six near-identical copies of itself held in the same conditions. ICGA Journal June 2013 102 Figure 2. Some of the authors of Homotopy Type Theory at the Institute for Advanced Studies, Princeton. Naturally, HoTT comes with its own set of axioms, and during their development it was necessary for the authors to conduct reasoning experiments to check that the axioms were powerful enough to formalize mathematical concepts. Interestingly, the authors chose to use interactive theorem provers to carry out these experiments, with the human first asserting axioms and then guiding the computer to prove goal theorems by invoking automatic reasoning tactics. Often, this involves backing out of a line of reasoning which is going nowhere and sometimes even resetting the proof-goal when a counter-example is discovered en route. The progress of the mathematicians was accelerated by their use of the GITHUB revision control system (Bauer, 2013a,b; GitHub, 2013) to facilitate collaboration on the development of both the book text and their formalized proofs. Note that while collaboration tools are extremely useful for multiple authors to write a book, they are even better for developing formalized mathematics, where as soon as a theorem is proved it can used as a lemma in other proofs. In the one-player game of interactive theorem proving, collaboration tools make it a consultation game allowing the players to work together efficiently and effectively to harvest the achievable goals. Time will tell whether Homotopy Type Theory provides a cleaner foundation for mathematics than ZFC set theory, but this book represents a concrete success for a new kind of experimental mathematics and promises an exciting future for the ‘HoTT’ field of automated and interactive theorem proving.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A short introduction to two approaches in formal verification of security protocols: model checking and theorem proving

In this paper, we shortly review two formal approaches in verification of security protocols; model checking and theorem proving. Model checking is based on studying the behavior of protocols via generating all different behaviors of a protocol and checking whether the desired goals are satisfied in all instances or not. We investigate Scyther operational semantics as n example of this...

متن کامل

Identity in Homotopy Type Theory, Part I: The Justification of Path Induction

Homotopy type theory (HoTT) is a new branch of mathematics that connects algebraic topology with logic and computer science, and which has been proposed as a new language and conceptual framework for mathematical practice. Much of the power of HoTT lies in the correspondence between the formal type theory and ideas from homotopy theory, in particular the interpretation of types, tokens, and equ...

متن کامل

Identity in Homotopy Type Theory, Part I: The Justification of Path Induction

Homotopy type theory (HoTT) is a new branch of mathematics that connects algebraic topology with logic and computer science, and which has been proposed as a new language and conceptual framework for mathematical practice. Much of the power of HoTT lies in the correspondence between the formal type theory and ideas from homotopy theory, in particular the interpretation of types, tokens, and equ...

متن کامل

A fixed point method for proving the stability of ring $(alpha, beta, gamma)$-derivations in $2$-Banach algebras

In this paper, we first present the new concept of $2$-normed algebra. We investigate the structure of this algebra and give some examples. Then we apply a fixed point theorem to prove the stability and hyperstability of $(alpha, beta, gamma)$-derivations in $2$-Banach algebras.

متن کامل

Theory Exploration with Theorema

Automated theorem proving is a well established subject in computer science. The advances made in the algorithmic techniques for automated theorem proving are impressive, see the survey paper [Loveland 1996]. Also, automated theorem proving has found various important applications in computer science. For example, Robinson’s resolution proving method launched a whole new programming paradigm, n...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • ICGA Journal

دوره 36  شماره 

صفحات  -

تاریخ انتشار 2013